package locations.actions;

import locations.model.Especialidad;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class NewSpecialityAction extends ActionSupport implements ModelDriven<Especialidad> 
{
    private static final long serialVersionUID = -8124967730231198191L;
    private Especialidad speciality = new Especialidad();
    private String pageTitle = "Editar especialidad";

    public String execute()
    {
        return SUCCESS;
    }

    public Especialidad getSpeciality()
    {
        return speciality;
    }

    public void setSpeciality(Especialidad speciality)
    {
        this.speciality = speciality;
    }

    @Override
    public Especialidad getModel()
    {
        return this.speciality;
    }
}